﻿<h3>Posts</h3>
<a href="#/" class="button">Logout</a>
<a href="#/users" class="button">Users</a>
<ul id="ul-posts" class="posts-list">
	<li class="post-item" data-approved="{{post.approved}}" ng-repeat="post in posts">
        <a href="#/posts">{{post.title}}</a> 
		by <a id="user" href="#/user/{{post.postedById}}">{{post.postedBy}}</a>
        <a class="button" href="" id="{{post.id}}" ng-click="disapprove(post.id)">Delete</a>
	</li>
</ul>	